package com.cjw.campus.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjw.campus.system.entity.TeacherTable;
import com.cjw.campus.system.mapper.TeacherTableMapper;
import com.cjw.campus.system.service.ITeacherTableService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cjw.campus.system.vo.TeacherTableVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 教师表 服务实现类
 * </p>
 *
 * @author cjw
 * @since 2022-12-04
 */
@Service
public class TeacherTableServiceImpl extends ServiceImpl<TeacherTableMapper, TeacherTable> implements ITeacherTableService {

    @Override
    public IPage<TeacherTableVO> listPageByTeacherName(IPage<TeacherTableVO> page, String teacherName) {
        return baseMapper.listPageByTeacherName(page, teacherName);
    }

    @Override
    public TeacherTableVO listPageByTeacherId(Long teacherId) {
        return baseMapper.listPageByTeacherId(teacherId);
    }

}
